<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Test03</title>
    <script src="https://unpkg.com/vue/dist/vue.js" type="text/javascript"></script>
</head>
<body>

<div id="app">

    <!--    <input v-model.lazy="message">-->

    <!--    <input v-model.number="message">-->

    <!--    <input type="number" v-model.number="message">-->

    <input v-model.trim="message">

    <p style="white-space: pre-line;">Message is: {{ message }}</p>

    <button @click="click">Click Me</button>

</div>

<script>
    let vm = new Vue({
        el: '#app',
        data: {
            message: '',
            // message: [],
        },
        methods: {
            click: function () {
                alert(this.message + 8);
            }
        }
    });

</script>

</body>
</html>